package cn.school.mybatis.pojo;

import java.io.Serializable;
import java.util.Date;

public class Result implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private Date examDate;
	private float score;
	private int stID;
	private int sbID;
	private Student student;
	private Subject subject;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getExamDate() {
		return examDate;
	}

	public void setExamDate(Date examDate) {
		this.examDate = examDate;
	}

	public float getScore() {
		return score;
	}

	public void setScore(float score) {
		this.score = score;
	}

	public int getStID() {
		return stID;
	}

	public void setStID(int stID) {
		this.stID = stID;
	}

	public int getSbID() {
		return sbID;
	}

	public void setSbID(int sbID) {
		this.sbID = sbID;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Subject getSubject() {
		return subject;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	public Result() {
		super();
	}

	public Result(Date examDate, float score, int stID, int sbID) {
		super();
		this.examDate = examDate;
		this.score = score;
		this.stID = stID;
		this.sbID = sbID;
	}

	public Result(int id, Date examDate, float score, int stID, int sbID) {
		super();
		this.id = id;
		this.examDate = examDate;
		this.score = score;
		this.stID = stID;
		this.sbID = sbID;
	}

	@Override
	public String toString() {
		return "Result [id=" + id + ", examDate=" + examDate + ", score=" + score + ", stID=" + stID + ", sbID=" + sbID
				+ "]\n";
	}

}
